﻿using System.Reflection;

namespace GX
{
    static public class UIManager
    {
        static IUIManager _mgr;
        static IUIManager mgr
        {
            get
            {
                if (null == _mgr)
                    _mgr = App.GetService(App.SERVICE_UI_MANAGER) as IUIManager;
                return _mgr;
            }
        }
        static public void Open(string uiName)
        {
            mgr.Open(uiName);
        }
        static public void Close(string uiName)
        {
            mgr.Close(uiName);
        }
        static public bool IsOpen(string uiName)
        {
            return mgr.IsOpen(uiName);
        }
        static public bool IsActive(string uiName)
        {
            return mgr.IsActive(uiName);
        }
        static public int count { get { return mgr.count; } }
        static public Event Args { get { return mgr.Args; } }
        static public Assembly assembly
        {
            get { return mgr.assembly; }
            set { mgr.assembly = value; }
        }
    }
}
